package main

import (
	"fmt"
	"time"
)

func main() {
	demo()
	fmt.Println("==================")
	demo2()
}

func demo() {
	str := "2023-05-29 17:13:55"
	fmt.Println(time.Local.String())
	t, _ := time.ParseInLocation("2006-01-02 15:04:05", str, time.Local)

	fmt.Println(t.UTC())
	fmt.Println(t)

}
func demo2() {
	str := "2023-05-29 17:13:55"
	t, _ := time.Parse("2006-01-02 15:04:05", str)
	fmt.Println(t.UTC())
	fmt.Println(t)

}
